//
//  CNTVTabbarController.m
//  CNTV_iPhone
//
//  Created  on 3/4/12.
//  Copyright (c) 2012 CNTV. All rights reserved.
//

#import "CommonTabbarController.h"
#import "CommonTabbarView.h"

@implementation CommonTabbarController
@synthesize commonTabBar = _commonTabBar;

-(void)dealloc{
    self.commonTabBar = nil;
    
    [super dealloc];
}

- (void)initCtrl 
{
    
    CGRect tabFrame = [self tabBar].frame;
	self.tabBar.hidden = YES;//隐藏tabcontroller默认的tabbar
	
    //生成新的tabbar
	CommonTabbarView *custTab = [[CommonTabbarView alloc] initWithFrame:tabFrame];
	custTab.tabbarctrl = self;
	[custTab initCtrl];
    self.commonTabBar = custTab;
	[self.view addSubview:self.commonTabBar];
	[custTab release];
}



@end
